function anotherXMLDoc(url){
	xmlhtttp = null;
	if (window.XMLHttpRequest){
	// code for Firefox, Opera, IE7, etc.
	  xmlhttp=new XMLHttpRequest();
	}
	else if (window.ActiveXObject){
	// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	if (xmlhttp!=null){
	  xmlhttp.onreadystatechange=read_tables;
	  xmlhttp.open("GET",url,true);
	  xmlhttp.send(null);
	}
	else{
	  alert("Your browser does not support XMLHTTP.");
	}
}

function read_tables(){
	if (xmlhttp.readyState==4){
	// 4 = "loaded"
	  if (xmlhttp.status==200){
	// 200 = "OK"
		var listdata = JSON.parse(xmlhttp.responseText);
		//console.log(listdata.data);
			
		var tableData = "";
		
		var selector = document.getElementById('mySelector');
		var option = selector.selectedIndex;
		
		for(i in listdata.data){
			var class_no = listdata.data[i].class+1;
			var member_no = listdata.data[i].member_no;
			if(class_no == option){
				tableData += "<tr><td>"+class_no+"</td><td>"+member_no+"</td></tr>";
			}
		}
		$("#tbody1").html(tableData)
		
	  }
	  else{
			alert("Problem retrieving data:" + xmlhttp.statusText);
		}
	}
	
}